package 文件操作;

import java.io.File;
import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * Description:查看文件夹里所包含的文件
 * User: lenovo
 * Date: 2022-10-16
 * Time: 16:43
 */
public class demo8 {
    public static void main(String[] args) {
        File file =new File("./testDir1");
        String[] s = file.list();
        System.out.println(Arrays.toString(s));
    }
}
